package com.haier.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haier.dto.HpGoApplyDto;
import com.haier.entity.HpGoApply;
import com.haier.utils.ListPageUtil;
import com.haier.vo.ApplyListVo;
import com.haier.vo.HpGoApplyVo;
import com.haier.vo.ResponseVo;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import java.util.List;

/**
 * <p>
 * 通行申请 服务类
 * </p>
 *
 * @author luanxuecheng
 * @since 2020-07-01
 */
public interface IHpGoApplyService extends IService<HpGoApply> {

	ResponseVo apply(List<ApplyListVo> params) throws Exception;

	@SuppressWarnings("rawtypes")
	ListPageUtil<HpGoApplyVo> pageByH5(HpGoApplyDto dto);

	ResponseVo setStatus(HpGoApplyDto dto) throws Exception;

	ResponseVo getDetail(HpGoApplyDto dto) throws Exception;

	/**
	 * 导出excel
	 * @param dto
	 * @return
	 */
    SXSSFWorkbook reportApply(HpGoApplyDto dto);

	/**
	 * 查询申请列表
	 * @param dto
	 * @return
	 */
	List<HpGoApplyVo> getListReport(HpGoApplyDto dto);
}
